package test1

import "websocket/melody"

type Session1 struct {
	*melody.Session
	uid int64
}

func NewSession1(s *melody.Session, u int64) *Session1 {
	return &Session1{
		Session: s,
		uid:     u,
	}
}

func (s *Session1) Uid() int64 {
	s.RLock()
	defer s.RUnlock()
	return s.uid
}
